<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <!--
        {{}}内部必须写js表达式, 表达式是指会生成返回值的一行js代码
        例：
        (1) a
        (2) a+b
        (3) fun(1)
        (4) x === y ? 'a':'b'
    -->
    <div id="root">
        <h1>Hello {{name.toUpperCase()}},{{1+1}},{{Date.now()}}</h1> 
    </div>
    <script>
        Vue.config.productionTip = false

        new Vue({
            el: "#root", 
            data: { 
                name: "sgg" 
            }
        })
    </script>
</body>
</html>